package com.example.bootintegration.webtest;

import org.springframework.web.context.support.AnnotationConfigWebApplicationContext;

public class WebContainerDemo {
    public static void main(String[] args) {
            AnnotationConfigWebApplicationContext webApplicationContext = new AnnotationConfigWebApplicationContext();
            //webApplicationContext.setParent(applicationContext);
            webApplicationContext.register(WebMvcConfig.class); // 注册上web环境的的配置类
            webApplicationContext.refresh(); // 手动刷新
            System.out.println(webApplicationContext.containsBean("helloController "));

    }
}